package com.digital.mapper;

import com.digital.annotation.AutoFill;
import com.digital.dto.ClassPageQueryDTO;
import com.digital.entity.Class;
import com.digital.enumeration.OperationType;
import com.digital.vo.ClassVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ClassMapper
{
    /**
     * 班级分页查询
     * @param classPageQueryDTO
     * @return
     */
    public List<ClassVO> list(ClassPageQueryDTO classPageQueryDTO);

    /**
     * 添加班级
     * @param classEntity
     */
    @AutoFill(value = OperationType.INSERT)
    void addClass(Class classEntity);
}
